import request from '@/utils/request'

// 查询转发列表
export function listTransmit(query) {
  return request({
    url: '/smile/transmit/list',
    method: 'get',
    params: query
  })
}

// 查询转发详细
export function getTransmit(id) {
  return request({
    url: '/smile/transmit/' + id,
    method: 'get'
  })
}

// 新增转发
export function addTransmit(data) {
  return request({
    url: '/smile/transmit',
    method: 'post',
    data: data
  })
}

// 修改转发
export function updateTransmit(data) {
  return request({
    url: '/smile/transmit',
    method: 'put',
    data: data
  })
}

// 删除转发
export function delTransmit(id) {
  return request({
    url: '/smile/transmit/' + id,
    method: 'delete'
  })
}
